/*
 * @Description: 
 * @Autor: kaikaima
 * @Date: 2021-03-20 21:21:43
 * @LastEditors: kaikaima
 * @LastEditTime: 2021-03-20 21:39:51
 */

#include <iostream>
#include <string>

int main (int argc, char* argv[]){
    int n=0;
    std::string dump;
    double time = 0;
    double total_time = 0;
    while(1){
        if(!(std::cin>>dump))
            break;
        std::cin>>time;
        total_time+=time;
        n++;
    }
    std::cout<<"改良平方根法: "<<std::endl;
    std::cout<<"average time : "<<total_time/n<<std::endl;
    return 0;
}